<div id="main" align='center'>
    <br />
    <?php if(isset($message)) echo "<center><font color=green><b>$message</b></font><center><br />"; ?>
    <form name='subjects' id='subjects' action='<?php echo Utility::getSiteUrl(); ?>/buildexamstruct/index' method='post'>
    <table>
       <tr>
          <td>
             Mã môn <input type='text' name='id' id='id' maxlength='6' size='6' />
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          </td>
          <td>
             Tên môn <input type='text' name='name' id='name' maxlength='50' size='30' />
          </td>
          <td>
             &nbsp;&nbsp;
             <input type='submit' name='search' id='search' value='Tìm kiếm' class='art-button' />
          </td>
       </tr>
    </table>
    <br />
    <table valign="MIDDLE" border='1' bordercolor='#ACACAC' width='500'>
        <thead>
            <tr>
                <th width='100'>Mã môn học</th>
                <th width='400'>Tên môn học</th>
            </tr>
        </thead>
        <tbody>
            <?php
            $rowArr = $data->getAll();
            if (isset($rowArr))
            foreach($rowArr as $row)
            {
                ?>
                <tr>
                    <td><center><b><a href="<?php echo Utility::getSiteUrl(); ?>/buildexamstruct/index/<?php echo $row->id; ?>"><?php echo $row->id; ?></a></b></center></td>
                    <td><a href="<?php echo Utility::getSiteUrl(); ?>/buildexamstruct/index/<?php echo $row->id; ?>"><?php echo $row->name; ?></a></td>
                </tr>
                <?php
            }
            ?>
        </tbody>
    </table>
    </form>
</div>